Automattic\Jetpack\Extensions\Premium_Content\Subscription_Service\Token_Subscription_Service B

Total Complexity 85
Dependencies 4
Dependents 6
Total lines 438
Lines of code 231
Logical lines of code 129
Comment lines 145
Methods 15
Properties 0

Methods 15

Method Rating Maintainability Complexity Lines of code
maybe_gate_access_for_user_if_tier()
C
36 27 70
user_has_access()
A
53 14 20
abbreviate_subscriptions()
A
54 8 19
visitor_can_view_content()
S
47 6 39
validate_subscriptions()
S
56 7 18
set_token_cookie()
S
65 5 8
decode_token()
S
62 4 11
token_from_request()
S
65 3 9
get_and_set_token_from_request()
S
69 2 7
maybe_gate_access_for_user_if_post_tier()
S
65 2 9
access_url()
S
65 2 9
token_from_cookie()
S
73 2 5
initialize()
S
82 1 3
get_key()
S
100 1 0
get_rest_api_token_url()
S
74 1 4